package com.sandasai.action.student;
import java.io.UnsupportedEncodingException;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.util.UriUtils;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.sandasai.service.StudentManager;
@Controller
@Scope("prototype")
public class WorkSubmissionPageAction extends ActionSupport {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Resource
	private StudentManager studentManager;
	private String tips;
	

	/**
     * @return
     */
    public String execute() throws Exception{
        ActionContext ctx = ActionContext.getContext();
        ctx.put("workTypeBeans", studentManager.getWorkTypes());
        return SUCCESS;
    }


	public String getTips() {
		return tips;
	}


	public void setTips(String tips) {
		try {
			this.tips = UriUtils.decode(tips, "utf-8");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		//this.tips = tips;
	}
}